<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<html class="x-admin-sm">
<head>
    <meta charset="UTF-8">
    <title>后台主页</title>
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/main_oa/css/font.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/main_oa/css/xadmin.css">
    <!-- <link rel="stylesheet" href="./css/theme5.css"> -->
    <script src="${pageContext.request.contextPath}/static/main_oa/lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/static/main_oa/js/xadmin.js"></script>
    <!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
    <!--[if lt IE 9]>
    <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
    <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    <script>
        // 是否开启刷新记忆tab功能
        // var is_remember = false;
    </script>

    <style type="text/css">
        body {
            background: url(${pageContext.request.contextPath}/static/branch_oa/images/kuang3.png) no-repeat;
            background-size:100% 100%;
            z-index: -1;
        }

        .container {
            width: 100%;
            height: 50px;
            background: url(${pageContext.request.contextPath}/static/branch_oa/images/gang5.png) no-repeat;
            background-size: 100% 100%;
        }

        .left-nav {
            position: absolute;
            top: 50px;
            bottom: 10px;
            left: 5px;
            z-index: 2;
            padding-top: 10px;
            background-color: #EEEEEE;
            width: 220px;
            max-width: 220px;
            overflow: auto;
            overflow-x: hidden;
            overflow: hidden;
        }

        .left-nav a.active {
            background: #5691c1 !important;
            color: #fff;
            border-color: #5691c1 !important;
        }

        .left-nav a:hover {
            background: #5691c1 !important;
            color: #fff;
            border-color: #5691c1 !important;
        }

        .page-content {
            position: absolute;
            top: 50px;
            right: 5px;
            bottom: 0px;
            left: 230px;
            overflow: hidden;
            z-index: 1;
        }

        .layui-nav-bar {
            background-color: #59aefe;
        }

        .news {
            display: inline-block;
            width: 200px;
            height: 326px;
            background: url(${pageContext.request.contextPath}/static/branch_oa/images/Blank_19.png) no-repeat;
            background-size: 100% 100%;
            position: relative;
            float: right;
            margin-top: 75px;
        }

        .news-info {
            position: absolute;
            top: 90px;
            left: 35px;
            width: 130px;
            height: 200px;
            font-size: 12px;
            color: #023557;

        }

        .page-content .layui-tab-content {
            bottom: 10px;
        }
    </style>

    <script>
        window.onload = function () {
            //定时器每秒调用一次fnDate()
            setInterval(function () {
                    fnDate();
                },
                1000);
            selectbuss();
        }

        //js 获取当前时间
        function fnDate() {
            var oDiv = document.getElementById("time");
            var date = new Date();
            var year = date.getFullYear();//当前年份
            var month = date.getMonth();//当前月份
            var data = date.getDate();//天
            var hours = date.getHours();//小时
            var minute = date.getMinutes();//分
            var second = date.getSeconds();//秒
            var time = "当前日期:" + year + "-" + fnW((month + 1)) + "-" + fnW(data) + " " + fnW(hours) + ":" + fnW(minute) + ":" + fnW(second);
            oDiv.innerHTML = time;
        }

        //补位 当某个字段不是两位数时补0
        function fnW(str) {
            var num;
            str > 10 ? num = str : num = "0" + str;
            return num;
        }

    </script>

</head>
<body class="index">
<!-- 顶部开始 -->
<div class="container">
    <div class="logo" style="padding-top: 3px; float: left">
        <div style="z-index: 100; float: left">
            <img src="${pageContext.request.contextPath}/static/branch_oa/images/1.gif"
                 style="width:50px;height:50px;" />
        </div>
        <div style="float: left ">
            <a href="javascript:;">
                <p style="color: white"><i>家政管理系统 -V6.8</i></p>
            </a>
        </div>
        <div style="clear: both"></div>

    </div>


    <div class="left_open" style="float: left">
        <a><i title="展开左侧栏" class="iconfont">&#xe699;</i></a>
    </div>




    <ul class="layui-nav right" lay-filter="">
        <li class="layui-nav-item to-index">
            <div id="time"></div>
        </li>
        <li class="layui-nav-item">
            <a href="javascript:;">欢迎管理员：${admin.userName}</a>
            <dl class="layui-nav-child">
                <!-- 二级菜单 -->
                <dd>
                    <a onclick="xadmin.open('修改资料','${pageContext.request.contextPath}/admin/main/updateAdmins?id=${admin.id}')">修改资料</a>
                </dd>
                <dd>
                    <a href="${pageContext.request.contextPath}/admin/main/adminCancellation">切换账号</a></dd>
                <dd>
                    <a href="${pageContext.request.contextPath}/admin/main/adminCancellation">退出</a></dd>
            </dl>
        </li>


    </ul>
</div>
<!-- 顶部结束 -->
<!-- 中部开始 -->
<!-- 左侧菜单开始 -->
<div class="left-nav">
    <div id="side-nav">
        <ul id="nav">
            <li>
                <a href="javascript:;">
                    <i class="iconfont left-nav-li" lay-tips="分店管理">&#xe6b4;</i>
                    <cite>分店管理</cite>
                    <i class="iconfont nav_right">&#xe697;</i></a>
                <ul class="sub-menu">
                    <li>
                        <a onclick="xadmin.add_tab('分店列表','${pageContext.request.contextPath}/admin/branchStore/showBranchStore')">
                            <i class="iconfont">&#xe6a7;</i>
                            <cite>分店列表</cite></a>
                    </li>
                    <li>
                        <a onclick="xadmin.add_tab('发票管理','${pageContext.request.contextPath}/admin/findAllInvoice')">
                            <i class="iconfont">&#xe6a7;</i>
                            <cite>发票管理</cite></a>
                    </li>
                    <li>
                        <a onclick="xadmin.add_tab('家政卡管理','${pageContext.request.contextPath}/admin/findAllCard')">
                            <i class="iconfont">&#xe6a7;</i>
                            <cite>家政卡管理</cite></a>
                    </li>
                </ul>
            </li>
            <%--           <li>
                           <a href="javascript:;">
                               <i class="iconfont left-nav-li" lay-tips="基础数据">&#xe699;</i>
                               <cite>基础数据</cite>
                               <i class="iconfont nav_right">&#xe697;</i></a>
                           <ul class="sub-menu">
                               <li>
                                   <a onclick="xadmin.add_tab('部门管理','${pageContext.request.contextPath}/admin/findAllPartment')">
                                       <i class="iconfont">&#xe6a7;</i>
                                       <cite>部门管理</cite></a>
                               </li>
                               <li>
                                   <a onclick="xadmin.add_tab('服务项目','${pageContext.request.contextPath}/admin/serviceList')">
                                       <i class="iconfont">&#xe6a7;</i>
                                       <cite>服务项目</cite></a>
                               </li>
                               <li>
                                   <a onclick="xadmin.add_tab('家政卡种类','${pageContext.request.contextPath}/admin/findAllCardDenomination')">
                                       <i class="iconfont">&#xe6a7;</i>
                                       <cite>家政卡种类</cite></a>
                               </li>
                               <li>
                                   <a onclick="xadmin.add_tab('业务分类','${pageContext.request.contextPath}/admin/findAllServiceClass')">
                                       <i class="iconfont">&#xe6a7;</i>
                                       <cite>业务分类</cite></a>
                               </li>
                               <li>
                                   <a onclick="xadmin.add_tab('业务来源','${pageContext.request.contextPath}/admin/findAllSource')">
                                       <i class="iconfont">&#xe6a7;</i>
                                       <cite>业务来源</cite></a>
                               </li>
                           </ul>
                       </li>--%>
            <li>
                <a href="javascript:;">
                    <i class="iconfont left-nav-li" lay-tips="业务部">&#xe705;</i>
                    <cite>业务部</cite>
                    <i class="iconfont nav_right">&#xe697;</i></a>
                <ul class="sub-menu">
                    <li>
                        <a onclick="xadmin.add_tab('业务管理','${pageContext.request.contextPath}/admin/Business/findAllBusiness')">
                            <i class="iconfont">&#xe6a7;</i>
                            <cite>业务管理</cite></a>
                    </li>
                </ul>
            </li>
            <li>
                <a href="javascript:;">
                    <i class="iconfont left-nav-li" lay-tips="派工部">&#xe74e;</i>
                    <cite>派工部</cite>
                    <i class="iconfont nav_right">&#xe697;</i></a>
                <ul class="sub-menu">
                    <li>
                        <a onclick="xadmin.add_tab('派单管理','${pageContext.request.contextPath}/admin/orders/findAllOrders')">
                            <i class="iconfont">&#xe6a7;</i>
                            <cite>派单管理</cite></a>
                    </li>
                </ul>
            </li>
            <li>
                <a href="javascript:;">
                    <i class="iconfont left-nav-li" lay-tips="人事部">&#xe6b8;</i>
                    <cite>人事部</cite>
                    <i class="iconfont nav_right">&#xe697;</i></a>
                <ul class="sub-menu">
                    <li>
                        <a onclick="xadmin.add_tab('员工管理','${pageContext.request.contextPath}/admin/staff/findAllStaff')">
                            <i class="iconfont">&#xe6a7;</i>
                            <cite>员工管理</cite></a>
                    </li>
                </ul>
            </li>
            <li>
                <a href="javascript:;">
                    <i class="iconfont left-nav-li" lay-tips="管理员管理">&#xe726;</i>
                    <cite>管理员管理</cite>
                    <i class="iconfont nav_right">&#xe697;</i></a>
                <ul class="sub-menu">
                    <li>
                        <a onclick="xadmin.add_tab('管理员列表','${pageContext.request.contextPath}/admin/main/findAllAdmin')">
                            <i class="iconfont">&#xe6a7;</i>
                            <cite>管理员列表</cite></a>
                    </li>
                </ul>
            </li>
            <li>
                <a href="javascript:;">
                    <i class="iconfont left-nav-li" lay-tips="客户端管理">&#xe726;</i>
                    <cite>客户端管理</cite>
                    <i class="iconfont nav_right">&#xe697;</i></a>
                <ul class="sub-menu">
                    <li>
                        <a onclick="xadmin.add_tab('客户端授权','${pageContext.request.contextPath}/ipr/findAll')">
                            <i class="iconfont">&#xe6a7;</i>
                            <cite>客户端授权</cite></a>
                    </li>
                    <li>
                        <a onclick="xadmin.add_tab('客户端公告','${pageContext.request.contextPath}/proper/findAllProper')">
                            <i class="iconfont">&#xe6a7;</i>
                            <cite>客户端公告</cite></a>
                    </li>
                </ul>
            </li>
            <li>
                <a href="javascript:;">
                    <i class="iconfont left-nav-li" lay-tips="系统设置">&#xe6ce;</i>
                    <cite>系统设置</cite>
                    <i class="iconfont nav_right">&#xe697;</i></a>
                <ul class="sub-menu">
                    <li>
                        <a onclick="xadmin.add_tab('数据备份','${pageContext.request.contextPath}/admin/backup/findAllBackup')">
                            <i class="iconfont">&#xe6a7;</i>
                            <cite>数据备份</cite></a>
                    </li>
                    <li>
                        <a onclick="xadmin.add_tab('更新日志','${pageContext.request.contextPath}/admin/daily/showDaily')">
                            <i class="iconfont">&#xe6a7;</i>
                            <cite>更新日志</cite></a>
                    </li>
                </ul>
            </li>
        </ul>
    </div>
</div>
<!-- <div class="x-slide_left"></div> -->
<!-- 左侧菜单结束 -->
<!-- 右侧主体开始 -->
<div class="page-content">
    <div class="layui-tab tab" lay-filter="xbs_tab" lay-allowclose="false">
        <ul class="layui-tab-title">
            <li class="home">
                <i class="layui-icon">&#xe68e;</i>我的桌面
            </li>


        </ul>
        <div class="layui-unselect layui-form-select layui-form-selected" id="tab_right">
            <dl>
                <dd data-type="this">关闭当前</dd>
                <dd data-type="other">关闭其它</dd>
                <dd data-type="all">关闭全部</dd>
            </dl>
        </div>
        <div class="layui-tab-content">
            <div class="layui-tab-item layui-show">
                <div class="layui-fluid">
                    <div class="layui-row layui-col-space15">
                        <div class="layui-col-md12">
                            <div class="layui-card">
                                <div class="right_open" style="right: -1010px">
                                    <div class="layui-col-md12">

                                        <div class="layui-card">
                                            <div class="layui-card-body ">
                                                <blockquote class="layui-elem-quote"
                                                            style="border-left: 5px solid #59aefe">欢迎管理员：
                                                    <span class="x-red">${bsadmin1.username}</span></br>
                                                    <div id="time"></div>
                                                </blockquote>
                                            </div>
                                        </div>
                                    </div>

                                </div>
                                <div class="layui-card-body ">
                                    <img src="${pageContext.request.contextPath}/static/branch_oa/images/banner.jpg"
                                         style="margin: auto;display: inline-block;width: 1000px;">
                                </div>

                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div id="tab_show"></div>
</div>
</div>
<div class="page-content-bg"></div>
<style id="theme_style"></style>
<!-- 右侧主体结束 -->
<!-- 中部结束 -->
<script>//百度统计可去掉
var _hmt = _hmt || []; (function() {
    var hm = document.createElement("script");
    hm.src = "https://hm.baidu.com/hm.js?b393d153aeb26b46e9431fabaf0f6190";
    var s = document.getElementsByTagName("script")[0];
    s.parentNode.insertBefore(hm, s);
})();</script>
</body>

</html>